import { Dispatch, SetStateAction } from "react";

import { IActiveColor } from "../types";

export interface IColor {
	gradient: string;
	type: string;
	modifier: string | number;
	stops: Array<any>;
}

export type TCoords = {
	x: number;
	y: number;
	shiftKey?: number | boolean;
	ctrlKey?: number | boolean;
};

export interface IPropsPanel {
	color: IColor;
	setColor: (color: IColor) => void;
	activeColor: IActiveColor;
	setActiveColor: Dispatch<SetStateAction<IActiveColor>>;
	setInit: Dispatch<SetStateAction<boolean>>;
	showGradientResult?: boolean;
	showGradientStops?: boolean;
	showGradientMode?: boolean;
	showGradientAngle?: boolean;
	showGradientPosition?: boolean;
	allowAddGradientStops?: boolean;
	format?: "rgb" | "hsl" | "hex";
}
